<!DOCTYPE html>
<html lang="en"
      xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8">
    <title>个人全部订单</title>
    <!-- jquery -->
    <script type="text/javascript" th:src="@{/js/jquery.min.js}"></script>
    <!-- bootstrap -->
    <link rel="stylesheet" type="text/css"
          th:href="@{/bootstrap/css/bootstrap.min.css}"/>
    <script type="text/javascript" th:src="@{/bootstrap/js/bootstrap.min.js}">
    </script>
    <!-- layer -->
    <script type="text/javascript" th:src="@{/layer/layer.js}"></script>
    <!-- common.js -->
    <script type="text/javascript" th:src="@{/js/common.js}"></script>

    <!--网页的图标-->
    <link rel="icon" th:href="@{/images/favicon2.ico}">
    <!--全局样式-->
    <link rel="stylesheet" th:href="@{/css/reset.css}">
    <!--字体图标-->
    <link rel="stylesheet" th:href="@{/css/iconfont.css}">
    <!--自己的样式-->
    <link rel="stylesheet" th:href="@{/css/mi.css}">
</head>
<body>
<div>
<!--    <table class="table" id="orderList">-->
<!--        <tr th:each="order : ${orderList}">-->
<!--            订单编号：<p  th:text="${order.id}"></p>-->
<!--            商品名称：<p  th:text="${order.goodsName}"></p>-->
<!--            商品价格：<p  th:text="${order.goodsPrice}"></p>-->
<!--            收货地址：<p  th:text="${order.userAddress}"></p>-->
<!--        </tr>-->
<!--    </table>-->
    <br/>  <br/>
    <h3 th:style="center">全部订单</h3>
    <div class="home-banner-box">
        <img src="/images/wrap1.png" alt="">
    </div>
    <ul th:each="order : ${orderList}">
        <li th:if="${user eq null}"><a href="/login/toLogin">未登录，请先登录</a></li>
        <li  th:if="${user ne null}" id="user">
            <li  th:if="${order.userId} eq ${user.id}">
                <a th:href="'/orderDetail.htm?orderId='+${order.id}">
                    订单编号：<a  th:text="${order.id}"></a>
                    <span></span>
                    商品名称：<a  th:text="${order.goodsName}"></a>
                    <span></span>
                    秒杀价格：<a  th:text="${order.seckillPrice}"></a>
                    <span></span>
                    收货地址：<a  th:text="${order.userAddress}"></a>
                </a>
        <br/>
            </li>
        </li>
    </ul>
    <div class="home-banner-box">
        <img src="/images/wrap1.png" alt="">
    </div>
</div>
</body>
</html>